# Prototype
snippet proto
	${1:class_name}.prototype.${2:method_name} =
	function(${3:first_argument}) {
		${4:// body...}
	};
# Function
snippet fu
	function (${1}) {
		${2}
	}
snippet fun
	function ${1:function_name} (${2:argument}) {
		${3:// body...}
	}
# Anonymous Function
# if
snippet if
	if (${1}) {
		${2}
	}
# if ... else
snippet ife
	if (${1}) {
		${2}
	}else{
		${3}
	}
# switch
snippet switch
	switch(${1:expression}) {
		case '${3:case}':
			${4:// code}
			break;
		${5}
		default:
			${2:// code}
	}
# case
snippet case
	case '${1:case}':
		${2:// code}
		break;
	${3}
# for (...) {...}
snippet for
	for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) {
		${4:$1[$2]}
	};
# for (...) {...} (Improved Native For-Loop)
snippet forr
	for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3:--}) {
		${4:$1[$2]}
	};
# while (...) {...}
snippet wh
	while (${1:/* condition */}) {
		${2:/* code */}
	}
# do...while
snippet do
	do {
		${2:/* code */}
	} while (${1:/* condition */});
# Object Method
snippet :fx
	${1:method_name}: function(${2:attribute}) {
		${4}
	}${3:,}
# setTimeout function
snippet timeout
	setTimeout(function() {${3}}${2}, ${1:10};
# Get Elements
# Get Element
snippet gett
	getElementBy${1:Id}('${2}')${3}

# the following content add by alex
snippet el
	else {
		${1}
	}
snippet eif
	else if (${1}){
		
	}
snippet win
	window.${1}
snippet we
	window.event${1}
snippet f
	for (var i = 0, k ; k = ${1}[i] ; i++ ) {

	}
snippet fin
	for (var ii = 0, kk ; kk = ${1}[ii] ; ii++ ) {

	}
snippet fo
	for (var i = 0, le = ${1}.length ; i < le; i++ ) {

	}
snippet fi
	for (var i in ${1}) {

	}
snippet dw
	do {

	}
	while (${1});
snippet dow
	document.write(${1});
snippet v
	var ${1}
snippet e
	= ${1} ;
snippet eq
	== 
snippet neq
	!= 
snippet at
	alert(${1});
snippet gi
	getElementById('${1}')
snippet gt
	getElementsByTagName('${1}')
snippet dgi
	document.getElementById(${1})
snippet dgt
	document.getElementsByTagName('${1}')
snippet ga
	getAttribute('${1}') ;
snippet sa
	setAttribute('${1}') ;
snippet nn
	nodeName${1}
snippet nv
	nodeValue${1}
snippet cn
	childNodes${1}
snippet ns
	nextSibling${1}
snippet pn
	parentNode${1}
snippet le
	length${1}
snippet d
	document${1}
snippet de
	documentElement
snippet fc
	firstChild${1}
snippet lc
	lastChild${1}
snippet ac
	appendChild(${1}) ;
snippet rc
	removeChild(${1}) ;
snippet getid
	var get = function (e) {return document.getElementById(e);} ;
snippet sid
	$('#${1}')
snippet dcf
	document.createDocumentFragment()
snippet dce
	document.createElement('${1}')
snippet dct
	document.createTextNode('${1}')
snippet t1
	alert('OK!');
snippet t2
	alert('erro!');
snippet ft
	filters[0].Opacity ${1}
snippet re
	return ${1} ;
snippet sstr
	substring(${1})
snippet ael
	addEventListener(${1}, , false) ;
snippet aev
	attachEvent(${1}, ) ;
snippet rel
	removeEventListener(${1}, , false) ;
snippet dev
	detachEvent(${1}, ) ;
snippet st
	setTimeout(${1}, 1000);
snippet si
	setInterval(${1}, 1000);
snippet ewe
	e = window.event || e ;
snippet oc
	onclick${1}
snippet try
	try {
		${1}
	}catch (e){}
snippet civy
	console.log(${1}) ;
snippet ar
	arguments
snippet ob
	Object
snippet rx
	responseXML
snippet rt
	responseText
snippet dix
	display = '${1}' ;
snippet ih
	innerHTML
snippet prt
	prototype
snippet prtt
	prototype = ${1} ;
snippet tof
	typeof ${1}
snippet onv
	onmouseover
snippet ont
	onmouseout
snippet nt
	nodeType
snippet lt
	< ${1}
snippet nlt
	> ${1}
snippet za
	+ ${1}
snippet zp
	- ${1}
snippet get
	get('${1}')
snippet ua
	navigator.userAgent
snippet bod
	getBoundingClientRect()
snippet cc
	tcDebug.run(${1});
snippet spl
	split('${1}')${2}
snippet io
	indexOf('${1}')${2}
snippet ts
	 (+ new Date()) 
